<script type="text/javascript" src="scripts/function.js"></script>
<script type="text/javascript">
function Search(){
var keyword=$("#search_keyword").val();
	if($.trim(keyword)==''||$.trim(keyword)=='{$language.please_put_keyword}'){
		alert('{$language.keyword_is_empty}');
		$("#search_keyword").focus();
		return;
	}
	keyword=keyword.replace(/\'/gi,"");
	keyword=keyword.replace(/\"/gi,"");
	keyword=keyword.replace(/\?/gi,"");
	keyword=keyword.replace(/\%/gi,"");
	keyword=keyword.replace(/\./gi,"");
	keyword=keyword.replace(/\*/gi,"");
	window.location.href="search.php?keyword="+encodeURI(keyword);
}
$(function(){
    $('#nav li:has(ul)').hover(function(){
            $(this).find('ul').delay(250).slideDown(400);
    },function(){
            $(this).find('ul').stop(true,true).fadeOut(200);
    });
});

</script>
<div id="header">
	<h1 id="logo"><a href="./"><img src="images/logo.gif" /></a></h1>
	<div id="search">
	<input type="text" class="kw" id="search_keyword"  class="input" value="{$language.please_put_keyword}" onfocus="if (this.value == '{$language.please_put_keyword}') {this.value = '';}" onblur="if (this.value == '') {this.value = '{$language.please_put_keyword}';}"/>
	<input type="button" class="submit" id="search_submit" onclick="Search()" />
	</div>
        <div class="toplink">
            <a href="#">关于我们</a> | <a href="#">加入收藏</a>
        </div>
	<div class="notice"></div>
</div>

{if $top_menu}
<div id="nav">
    <ul class="menu">
            {foreach item=menu from=$top_menu}
            <li><a href="{$menu.link}"{if $menu.target==1} target="_blank"{/if}{if $menu.active} class="active"{/if}>{$menu.name}</a>{if $menu.children}<ul class="submenu">{foreach item=child from=$menu.children}<li><a href="{$child.link}">{$child.name}</a></li>{/foreach}</ul>{/if}</li>
            {/foreach}
    </ul>
    <div class="clear"></div>
    <!--div id="here">{$here}</div-->
</div>
{/if}
<div class="clear"></div>